Pod::Spec.new do |s|
  s.ios.deployment_target = "6.0"

  s.name         = 'ShareSDK'
  s.version      = '2.9.0'
  s.license      =  { :type => 'MIT', :file => 'LICENSE' }
  s.homepage     = 'http://http://sharesdk.cn/'
  s.authors      =  { 'carlos' => 'carlosk@163.com' }
  s.summary      = 'ShareSDK的2.8.8版本的封装'
  s.source       =  { :git => 'https://git.oschina.net/daileitry.com/ShareSDK.podspec.git'}
  s.requires_arc = true
  #system framework and library
  #s.framework    = 'SystemConfiguration','QuartzCore','CoreTelephony','MessageUI'
  #s.libraries = 'icucore','z.1.2.5','stdc++','sqlite3'

  #s.vendored_frameworks = '*.framework','**/*.framework','**/**/*.framework'
  #s.vendored_libraries = '**/**/*.a'
  #s.resource_bundles = { 'Resource' => ['Core/Resource.bundle/**/*.png'], 'ShareSDKiPadDefaultShareViewUI' => ['UI/ShareSDKiPadDefaultShareViewUI.bundle/**/*.png'],'ShareSDKiPadSimpleShareViewUI' => ['UI/ShareSDKiPadSimpleShareViewUI.bundle/**/*.png'],'ShareSDKiPhoneDefaultShareViewUI' => ['UI/ShareSDKiPhoneDefaultShareViewUI.bundle/**/*.png'],'ShareSDKiPhoneSimpleShareViewUI' => ['UI/ShareSDKiPhoneSimpleShareViewUI.bundle/**/*.png'] }
  #s.source_files = "Extend/**/*.{h,m}"
  #s.resources = ["Core/**/*.strings","**/*.bundle"]
    #base
    s.subspec "Base" do |sp|
    sp.framework = 'SystemConfiguration','QuartzCore','CoreTelephony'
    sp.libraries = 'icucore','z.1.2.5'
    sp.vendored_frameworks = 'ShareSDK.framework','UI/ShareSDKiPhoneAppRecommendShareViewUI.framework','UI/ShareSDKiPhoneDefaultShareViewUI.framework','UI/ShareSDKiPhoneSimpleShareViewUI.framework','Core/AGCommon.framework','Core/ShareSDKCoreService.framework'
    sp.resources=["Core/Resource.bundle","Core/zh-Hans.lproj/*.strings"]
    end
    #新浪微博
    s.subspec "SinaWeibo" do |sp|
      sp.vendored_frameworks = 'Connection/SinaWeiboConnection.framework'
      sp.vendored_libraries = 'Extend/SinaWeiboSDK/*.a'
      #sp.resources = ["Extend/SinaWeiboSDK/*.bundle"]
      sp.source_files = "Extend/SinaWeiboSDK/*.{h,m}"
      sp.dependency 'ShareSDK/Base'
    end
    #qq空间
    s.subspec "QQZone" do |sp|
      sp.vendored_frameworks = 'Connection/QZoneConnection.framework','Connection/QQConnection.framework','Extend/QQConnectSDK/TencentOpenAPI.framework'
      #sp.resources = ["Extend/QQConnectSDK/*.bundle"]
      sp.framework = 'Security'
      sp.libraries = 'stdc++','sqlite3'
      sp.dependency 'ShareSDK/Base'
    end
    #微信
    s.subspec "WeChat" do |sp|
      sp.vendored_frameworks = 'Connection/WeChatConnection.framework'
      sp.vendored_libraries = 'Extend/WeChatSDK/*.a'
      sp.source_files = "Extend/WeChatSDK/*.{h,m}"
      sp.dependency 'ShareSDK/Base'
    end
    #Facebook
    s.subspec "Facebook" do |sp|
      sp.vendored_frameworks = 'Connection/FacebookConnection.framework'
      sp.dependency 'ShareSDK/Base'
    end
    #Twitter
    s.subspec "Twitter" do |sp|
      sp.vendored_frameworks = 'Connection/TwitterConnection.framework'
      sp.dependency 'ShareSDK/Base'
    end
    #Google+
    s.subspec "GooglePlus" do |sp|
      sp.vendored_frameworks = 'Connection/GooglePlusConnection.framework','Extend/GooglePlusSDK/*.framework'
      sp.dependency 'ShareSDK/Base'
     sp.resources = ["Extend/GooglePlusSDK/*.bundle"]
      sp.framework = 'CoreMotion','CoreLocation','MediaPlayer','CoreText','AssetsLibrary','AddressBook'
    end

end

